package ie.live.byrnep.pleasesleephere.base;

import android.view.View;
import android.widget.SimpleAdapter.ViewBinder;

import android.graphics.Bitmap;
import android.view.View;
import android.widget.ImageView;
import android.widget.SimpleAdapter.ViewBinder;

public class MyViewBinder implements ViewBinder {
@Override
public boolean setViewValue(View view, Object data,String textRepresentation) {
if( (view instanceof ImageView) & (data instanceof Bitmap) ) {
ImageView iv = (ImageView) view;
Bitmap bm = (Bitmap) data;	
iv.setImageBitmap(bm);	
return true;
}

return false;
}
}
